<div class="details_album">
    <h1><?php echo $album_name;?></h1>
    <ul>
        <?php foreach($images as $image):?>
        <li class="images">
            <a rel="example_group" href="/images/albums/<?php echo $image->image_name;?>">
                <img alt="" src="/images/albums/<?php echo $image->image_name;?>">
            </a>
        </li>
        <?php endforeach;?>
    </ul>
</div>